﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GPSTrackingWebsiteManager.Manager.Pages
{
    public partial class LoginOut : ClassManager.SessionManagerPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnLoginOut_Click(object sender, EventArgs e)
        {
            System.Web.Security.FormsAuthentication.SignOut();
            Session.Abandon();

            if (Request.Cookies["CompanyID"] != null)
                Response.Redirect("../../" +  Request.Cookies["Login"].Value + ".aspx?GUID=" + Request.Cookies["CompanyID"].Value, true);
            else
                Response.Redirect("../../" +  Request.Cookies["Login"].Value + ".aspx", true);
        }
    }
}